import React, { Component } from 'react'
import { StatusBar, ScrollView, Text, KeyboardAvoidingView } from 'react-native'
import Icon from 'react-native-vector-icons/FontAwesome'
import { connect } from 'react-redux'
// Add Actions - replace 'Your' with whatever your reducer is called :)
// import YourActions from '../Redux/YourRedux'

// Styles
import styles from './Styles/RealtimeSuccessScreenStyle'

class RealtimeSuccessScreen extends Component {
  static navigationOptions = {
    title: '下单成功'
  }
  render () {
    return (
      <ScrollView style={styles.container}>
        <StatusBar translucent={false} barStyle='dark-content' backgroundColor='white' />
        <KeyboardAvoidingView behavior='position'>
          <Icon name='check' style={styles.Icon} />
          <Text style={styles.title}>下单成功</Text>
        </KeyboardAvoidingView>
      </ScrollView>
    )
  }
}

const mapStateToProps = (state) => {
  return {
  }
}

const mapDispatchToProps = (dispatch) => {
  return {
  }
}

export default connect(mapStateToProps, mapDispatchToProps)(RealtimeSuccessScreen)
